<script type="text/javascript">
  $('.installapp').on('click', function() {
    var obj = $(this);
    $.ajax({
      type: "get",
      dataType: "json",
      url: "/index/installapp/"+$(this).attr('data-identifier'),
      success: function (result) {
        if (result.code == 0) {
          alert('安装成功');
          obj.fadeOut(300);
        } else {
          alert(result.msg);
        }
      },
      error : function() {
        alert("异常！");
      }
    });
  return false;
  });
</script>
